from django.db import models
from students.models import Students
# Create your models here.
"""
缴费项目表
"""
class PayCostModel(models.Model):
    # name = models.CharField(max_length=12, verbose_name='姓名', null=False)
    # grade = models.CharField(max_length=32, verbose_name='年级', null=False)
    # the_class = models.CharField(max_length=32, verbose_name='班级', null=False)
    # id_number = models.CharField(max_length=18, verbose_name='身份证号', null=False, unique=True)
    stuinfo = models.ForeignKey(Students,on_delete=models.CASCADE,null=True)
    pay_time = models.DateField(verbose_name='缴费期限',auto_now=False,auto_now_add=False,null=False)
    pay_type = models.CharField(max_length=12,verbose_name='缴费类型',null=False)
    pay_lines = models.CharField(max_length=8,verbose_name='缴费金额',null=False)

    class Meta:

        db_table = 'pay_cost'
        verbose_name = '缴费项目表'
        verbose_name_plural = verbose_name